-- GENERATED SPELL FOR [Goremaw] --


function spell0_27578(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(50729,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27578', 15000, 1)
end

function spell1_27578(pUnit, Event) --@Infected Worgen Bite,n/a--
pUnit:FullCastSpellOnTarget(53174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27578', 0, 1)
end

function Sorts_27578(pUnit, Event)
local choix_sorts_27578 = math.random(0, 1)
if choix_sorts_27578 == 0 then
pUnit:RegisterEvent('spell0_27578', 1, 1)
end
if choix_sorts_27578 == 1 then
pUnit:RegisterEvent('spell1_27578', 1, 1)
end
end

function mob27578_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27578', math.random(1500, 3000), 1)
end

function mob27578_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27578_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27578_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27578, 1, 'mob27578_Action')
RegisterUnitEvent(27578, 2, 'mob27578_Leave')
RegisterUnitEvent(27578, 3, 'mob27578_Kill')
RegisterUnitEvent(27578, 4, 'mob27578_Die')
